package p_myaop;

import org.springframework.stereotype.Component;

@Component    //加入IOC容器
public class Aop {
	public void begin(){
		System.out.println("事务开始/异常");
	}
	public void commit(){
		System.out.println("事务提交/关闭");
	}
}
